<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=1798848182" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="100482735" data-redirecturi="http://befamousstore.com/" charset="utf-8" data-callback="true"></script>
<%@include file="jspcommon.jsp"%>
<%
	String menuType = "";
	String url = request.getRequestURI();
	if(url!=null){
	    url=url.substring(url.lastIndexOf("/")+1);
	    if(url.equals("artMade.jsp") || url.equals("flow.jsp")|| url.equals("martist.jsp")  || url.equals("niceist.jsp")|| url.equals("artist.jsp")){
	        menuType="made";
	    }else if(url.equals("artRoom.jsp") 
	    		|| url.equals("inroom.jsp")|| url.equals("rback.jsp")
	    		|| url.equals("rnow.jsp")|| url.equals("rpics.jsp")	|| url.equals("roomflv.jsp")){
	    	menuType="room";
	    }else if(url.equals("index.jsp")){
	        menuType="index";
	    }else if(url.equals("activity.jsp")){
	        menuType="activity";
	    }else if(url.equals("find.jsp") || url.equals("findArtist.jsp") || url.equals("findMap.jsp") || url.equals("prof.jsp")  
	    		|| url.equals("profs.jsp")	|| url.equals("print.jsp")	|| url.equals("printc.jsp")	|| url.equals("fart.jsp")	|| url.equals("commentModel.jsp")	
	    		|| url.equals("fartist.jsp")	|| url.equals("buyStepOne.jsp")|| url.equals("buyStepTwo.jsp")
	    ){
	        menuType="find";
	    }else if(url.equals("auction.jsp") || url.equals("auction.jsp")||url.equals("auctionlb.jsp")){
	        menuType="auction";
	    }else if(url.equals("aboutUs.jsp")){
	        menuType="aboutUs";
	    }
	}
	request.setAttribute("menuType",menuType);
%>
<script type="text/javascript">
	
	$(function(){
		$("#ope_avatar").mouseenter(function(){
			$("#operate").show();
			$(document).bind("click",function(){
				$("#operate").hide();
				$(this).unbind("click");
			});
		});
		
		
	});
	function logoutAll(){
		$.post("/logoutAll.htm", {
 		}, function(data){
 			if(data=='true'){
 					WB2.logout(function(){
 						window.location.href="/member.htm";
 					});
 					 
			 }
		});
	}
	function logoutqq(){
		$.post("/logoutAll.htm", {
 		}, function(data){
 			if(data=='true'){
 				QC.Login.signOut();
 				window.location.href="/member.htm";
			 }
		});
		
	}
</script>
    <div id="header">
        
       <c:if test="${onlineUser.member==null }"><div id="login"><a href="/login.htm">登陆</a>／<a href="/register.htm">注册</a>／<a href="http://befamousstore.com/misc/login.htm">艺术家登陆</a></div></c:if>
      <c:if test="${onlineUser.member!=null }">
      <div id="login">您好，${onlineUser.member.nickname }&nbsp;&nbsp;&nbsp;&nbsp;<a href="/member.htm" class="login">我的账户</a>
	      <c:choose>
		      <c:when test="${out eq 'sina'}"><a href="#" onclick="logoutAll();">退出</a></c:when>
		      <c:when test="${out eq 'qq' }"> <a href="#" onclick="logoutqq();">退出</a></c:when> 
	      		<c:otherwise> <a href="/logout.htm">退出</a></c:otherwise> 
	      </c:choose>
      </div>
      
      </c:if>
          	
        <div id="logo"><a href="#"><img src="../images/images/logo.jpg" alt="" /></a></div>
       <!--  <div id="top_search">
            <form name="form_top_search" method="post" action="">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td><input id="Txt_Search" type="text" class="input_search" value="Search" onfocus="if (this.value=='Search')this.value=''" onblur="if (this.value=='')this.value='Search'" /></td>
                    <td><input type="submit" value="" class="btn_search"/></td>
                </tr>
            </table>
            </form>
        </div> -->
        <div id="nav">
        <ul>
            <li <c:if test="${menuType=='index'}">class="cur"</c:if>><a href="welcome.htm">首页</a></li>
            <li <c:if test="${menuType=='find'}">class="cur"</c:if>><a href="found.htm">发现</a></li>
            <li <c:if test="${menuType=='made'}">class="cur"</c:if>><a href="made.htm">定制</a></li>
            <li <c:if test="${menuType=='auction'}">class="cur"</c:if>><a href="auction.htm">拍卖</a></li>
            <li <c:if test="${menuType=='room'}">class="cur"</c:if>><a href="artroom.htm">展览馆</a></li>
            <li <c:if test="${menuType=='activity'}">class="cur"</c:if>><a href="activity.htm">活动</a></li>
            <li <c:if test="${menuType=='aboutUs'}">class="cur"</c:if>><a href="ourMission.htm">关于我们</a></li>
        </ul>
        </div>
    </div>
    <!-- head--end-->